﻿<%@ Page Language="C#" MasterPageFile="~/Masterpages/Admin.Master" AutoEventWireup="true" CodeBehind="Info.aspx.cs" Inherits="Ryder_US_Website.Presentation.Admin.Info" Title="Thông tin cá nhân" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script language="javascript" type="text/javascript">
    function validateForm() {
        if (document.getElementById('<%=txtMatKhau.ClientID %>').value == "" || document.getElementById('<%=txtMatKhau.ClientID %>').value.length < 1) {
            alert("Mật khẩu không được để trống");
            document.getElementById('<%=txtMatKhau.ClientID %>').focus();
        }
        else
            return true;
        return false;
        
    }
</script>
    <h1 class="title">Thông tin cá nhân</h1>
    <form id="MainForm" name="MainForm" action="" method="post">
    <table style="width: 91%;">
        <tr>
            <td colspan="3">
                <p>
                </p>
            </td>
        </tr>
        <tr>
            <td style="width: 25%" class="style2">
                <asp:Label ID="lbLoaiNhanVien" runat="server" Text="lbLoaiNhanVien" CssClass="label">Loại 
                nhân viên:</asp:Label>
            </td>
            <td style="width: 2%">
            </td>
            <td colspan="2" class="style1">
                <asp:Label ID="lbLoaiNV" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <p>
                </p>
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label1" runat="server" Text="lbTenDangNhap" CssClass="label">Tên 
                đăng nhập:</asp:Label>
            </td>
            <td>
                &nbsp;
            </td>
            <td colspan="2" class="style1">
                <asp:Label ID="lbTenDangNhap" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <p>
                </p>
            </td>
        </tr>  
        <tr>       
            <td class="style2">
                &nbsp;
                <asp:Label ID="lbMatKhau" runat="server" Text="lbMatKhau"> Mật khẩu:</asp:Label>
            </td>
            <td class="style2">
                &nbsp;</td>
            <td class="style1">
                <asp:TextBox ID="txtMatKhau" runat="server" TextMode="Password" Width="230px" Font-Size="Medium"
                    Enabled="True"></asp:TextBox>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <p>
                </p>
            </td>
        </tr>
        <tr>
            <td colspan="2">
            </td>
            <td class="style1">
                <asp:Button ID="btnCapNhat" runat="server" Text="Cập nhật" CssClass="button"  OnClientClick="return validateForm();"
                    onclick="btnCapNhat_Click" />
                &nbsp;
             <asp:Button ID="btnHuy" runat="server" Text="Hủy" CssClass="button" 
                    onclick="btnHuy_Click" />
            </td>
        </tr>
    </table>
    </form>
</asp:Content>
